the gchar* parameters should be const (pointed out by both Marco Pesenti
authorKristian Rietveld <kris@gtk.org>
Sat, 11 Oct 2003 13:49:22 +0000 (13:49 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Sat, 11 Oct 2003 13:49:22 +0000 (13:49 +0000)
Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>

* gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
(gtk_entry_completion_insert_action_text),
(gtk_entry_completion_insert_action_markup): the gchar* parameters
should be const (pointed out by both Marco Pesenti Gritti and
Murray Cumming (#124356).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentrycompletion.c
gtk/gtkentrycompletion.h

index 1cb07007da305c4ad063349e31ff8df39dffe7d7..ce273f046e8ee887223a9f834757501ab955a59a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
+       (gtk_entry_completion_insert_action_text),
+       (gtk_entry_completion_insert_action_markup): the gchar* parameters
+       should be const (pointed out by both Marco Pesenti Gritti and
+       Murray Cumming (#124356).
+
 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
index 1cb07007da305c4ad063349e31ff8df39dffe7d7..ce273f046e8ee887223a9f834757501ab955a59a 100644 (file)
@@ -1,3 +1,11 @@
+Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
+       (gtk_entry_completion_insert_action_text),
+       (gtk_entry_completion_insert_action_markup): the gchar* parameters
+       should be const (pointed out by both Marco Pesenti Gritti and
+       Murray Cumming (#124356).
+
 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
index 1cb07007da305c4ad063349e31ff8df39dffe7d7..ce273f046e8ee887223a9f834757501ab955a59a 100644 (file)
@@ -1,3 +1,11 @@
+Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
+       (gtk_entry_completion_insert_action_text),
+       (gtk_entry_completion_insert_action_markup): the gchar* parameters
+       should be const (pointed out by both Marco Pesenti Gritti and
+       Murray Cumming (#124356).
+
 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
index 1cb07007da305c4ad063349e31ff8df39dffe7d7..ce273f046e8ee887223a9f834757501ab955a59a 100644 (file)
@@ -1,3 +1,11 @@
+Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
+       (gtk_entry_completion_insert_action_text),
+       (gtk_entry_completion_insert_action_markup): the gchar* parameters
+       should be const (pointed out by both Marco Pesenti Gritti and
+       Murray Cumming (#124356).
+
 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
index 1cb07007da305c4ad063349e31ff8df39dffe7d7..ce273f046e8ee887223a9f834757501ab955a59a 100644 (file)
@@ -1,3 +1,11 @@
+Sat Oct 11 15:47:03 2003  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtkentrycompletion.[ch] (gtk_entry_completion_insert_action),
+       (gtk_entry_completion_insert_action_text),
+       (gtk_entry_completion_insert_action_markup): the gchar* parameters
+       should be const (pointed out by both Marco Pesenti Gritti and
+       Murray Cumming (#124356).
+
 Sat Oct 11 15:37:19 2003  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtkcombobox.c (gtk_combo_box_size_allocate): for the custom
index df26ce8a509e859e049c6229ecdfe71f895da5b7..73f642189f9d2f157e7ad4a665a0b2ebb787dafc 100644 (file)
@@ -105,7 +105,7 @@ static void     gtk_entry_completion_selection_changed   (GtkTreeSelection
 
 static void     gtk_entry_completion_insert_action       (GtkEntryCompletion      *completion,
                                                           gint                     index,
-                                                          gchar                   *string,
+                                                          const gchar             *string,
                                                           gboolean                 markup);
 static void     gtk_entry_completion_action_data_func    (GtkTreeViewColumn       *tree_column,
                                                           GtkCellRenderer         *cell,
@@ -870,7 +870,7 @@ gtk_entry_completion_complete (GtkEntryCompletion *completion)
 static void
 gtk_entry_completion_insert_action (GtkEntryCompletion *completion,
                                     gint                index,
-                                    gchar              *string,
+                                    const gchar        *string,
                                     gboolean            markup)
 {
   GtkTreeIter iter;
@@ -910,7 +910,7 @@ gtk_entry_completion_insert_action (GtkEntryCompletion *completion,
 void
 gtk_entry_completion_insert_action_text (GtkEntryCompletion *completion,
                                          gint                index,
-                                         gchar              *text)
+                                         const gchar        *text)
 {
   g_return_if_fail (GTK_IS_ENTRY_COMPLETION (completion));
   g_return_if_fail (text != NULL);
@@ -932,7 +932,7 @@ gtk_entry_completion_insert_action_text (GtkEntryCompletion *completion,
 void
 gtk_entry_completion_insert_action_markup (GtkEntryCompletion *completion,
                                            gint                index,
-                                           gchar              *markup)
+                                           const gchar        *markup)
 {
   g_return_if_fail (GTK_IS_ENTRY_COMPLETION (completion));
   g_return_if_fail (markup != NULL);
index ecf255778f137c0051981c88a0f8fca4b6d6cb5e..2a1b23327fd926f1e2f93aa2b248d697c6665f4c 100644 (file)
@@ -87,10 +87,10 @@ void                gtk_entry_completion_complete               (GtkEntryComplet
 
 void                gtk_entry_completion_insert_action_text     (GtkEntryCompletion          *completion,
                                                                  gint                         index,
-                                                                 gchar                       *text);
+                                                                 const gchar                 *text);
 void                gtk_entry_completion_insert_action_markup   (GtkEntryCompletion          *completion,
                                                                  gint                         index,
-                                                                 gchar                       *markup);
+                                                                 const gchar                 *markup);
 void                gtk_entry_completion_delete_action          (GtkEntryCompletion          *completion,
                                                                  gint                         index);